<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bin基本使用</title>
</head>
<body>
    <div id="app">
        <a v-bind:href="url">百度</a>
        <!-- 语法糖格式 -->
        <a :href="url">百度</a>
    </div>

    <script src="../vue/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                url:'http://www.baidu.com'
            },
            methods: {
                
            },
        });
    </script>
</body>
</html>